package com.zangs.emqx_expand.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zangs.emqx_expand.system.mapper.AppUserApiMapper;
import com.zangs.emqx_expand.system.domain.AppUserApi;
import com.zangs.emqx_expand.system.service.IAppUserApiService;

/**
 * 密钥Api关联Service业务层处理
 * 
 * 
 * @since 2025-01-22
 */
@Service
public class AppUserApiServiceImpl implements IAppUserApiService 
{
    @Autowired
    private AppUserApiMapper appUserApiMapper;

    /**
     * 查询密钥Api关联
     * 
     * @param appUserId 密钥Api关联主键
     * @return 密钥Api关联
     */
    @Override
    public AppUserApi selectAppUserApiByAppUserId(Long appUserId)
    {
        return appUserApiMapper.selectAppUserApiByAppUserId(appUserId);
    }

    /**
     * 查询密钥Api关联列表
     * 
     * @param appUserApi 密钥Api关联
     * @return 密钥Api关联
     */
    @Override
    public List<AppUserApi> selectAppUserApiList(AppUserApi appUserApi)
    {
        return appUserApiMapper.selectAppUserApiList(appUserApi);
    }

    /**
     * 新增密钥Api关联
     * 
     * @param appUserApi 密钥Api关联
     * @return 结果
     */
    @Override
    public int insertAppUserApi(AppUserApi appUserApi)
    {
        return appUserApiMapper.insertAppUserApi(appUserApi);
    }

    /**
     * 修改密钥Api关联
     * 
     * @param appUserApi 密钥Api关联
     * @return 结果
     */
    @Override
    public int updateAppUserApi(AppUserApi appUserApi)
    {
        return appUserApiMapper.updateAppUserApi(appUserApi);
    }

    /**
     * 批量删除密钥Api关联
     * 
     * @param appUserIds 需要删除的密钥Api关联主键
     * @return 结果
     */
    @Override
    public int deleteAppUserApiByAppUserIds(Long[] appUserIds)
    {
        return appUserApiMapper.deleteAppUserApiByAppUserIds(appUserIds);
    }

    /**
     * 删除密钥Api关联信息
     * 
     * @param appUserId 密钥Api关联主键
     * @return 结果
     */
    @Override
    public int deleteAppUserApiByAppUserId(Long appUserId)
    {
        return appUserApiMapper.deleteAppUserApiByAppUserId(appUserId);
    }
}
